home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / automake-1.5 / am / scripts.am < prev    next >
Encoding:
Text File  |  2005-10-16  |  2.8 KB  |  90 lines

  1. ## automake - create Makefile.in from Makefile.am
  2. ## Copyright 1994, 1995, 1996, 1998, 1999, 2001 Free Software Foundation, Inc.
  3.  
  4. ## This program is free software; you can redistribute it and/or modify
  5. ## it under the terms of the GNU General Public License as published by
  6. ## the Free Software Foundation; either version 2, or (at your option)
  7. ## any later version.
  8.  
  9. ## This program is distributed in the hope that it will be useful,
  10. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. ## GNU General Public License for more details.
  13.  
  14. ## You should have received a copy of the GNU General Public License
  15. ## along with this program; if not, write to the Free Software
  16. ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  17. ## 02111-1307, USA.
  18.  
  19.  
  20. ## ------------ ##
  21. ## Installing.  ##
  22. ## ------------ ##
  23.  
  24. if %?INSTALL%
  25. ## if doesn't work properly for Automake variables yet.
  26. _am_installdirs += $(DESTDIR)$(%NDIR%dir)
  27. ?EXEC?.PHONY install-exec-am: install-%DIR%SCRIPTS
  28. ?!EXEC?.PHONY install-data-am: install-%DIR%SCRIPTS
  29. install-%DIR%SCRIPTS: $(%DIR%_SCRIPTS)
  30.     @$(NORMAL_INSTALL)
  31.     $(mkinstalldirs) $(DESTDIR)$(%NDIR%dir)
  32. ## Funny invocation because Makefile variable can be empty, leading to
  33. ## a syntax error in sh.
  34.     @list='$(%DIR%_SCRIPTS)'; for p in $$list; do \
  35.       f="`echo $$p|sed '$(transform)'`"; \
  36.       if test -f $$p; then \
  37.         echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(%NDIR%dir)/$$f"; \
  38.         $(INSTALL_SCRIPT) $$p $(DESTDIR)$(%NDIR%dir)/$$f; \
  39.       elif test -f $(srcdir)/$$p; then \
  40.         echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(%NDIR%dir)/$$f"; \
  41.         $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(%NDIR%dir)/$$f; \
  42.       else :; fi; \
  43.     done
  44. endif %?INSTALL%
  45.  
  46.  
  47. ## -------------- ##
  48. ## Uninstalling.  ##
  49. ## -------------- ##
  50.  
  51. if %?INSTALL%
  52. .PHONY uninstall-am: uninstall-%DIR%SCRIPTS
  53. uninstall-%DIR%SCRIPTS:
  54.     @$(NORMAL_UNINSTALL)
  55.     @list='$(%DIR%_SCRIPTS)'; for p in $$list; do \
  56.       f="`echo $$p|sed '$(transform)'`"; \
  57.       echo " rm -f $(DESTDIR)$(%NDIR%dir)/$$f"; \
  58.       rm -f $(DESTDIR)$(%NDIR%dir)/$$f; \
  59.     done
  60. endif %?INSTALL%
  61.  
  62.  
  63. ## -------------- ##
  64. ## Distributing.  ##
  65. ## -------------- ##
  66.  
  67. if %?DIST%
  68. DIST_COMMON += $(%DIR%_SCRIPTS)
  69. endif %?DIST%
  70.  
  71.  
  72. ## ---------- ##
  73. ## Checking.  ##
  74. ## ---------- ##
  75.  
  76. ## Uncomment line in handle_scripts when this is uncommented.
  77. ## check-%DIR%SCRIPTS:
  78. ##     pid=$$$$; list="$(%DIR%_SCRIPTS)"; for p in $$list; do \
  79. ##       for opt in --help --version; do \
  80. ##         if test -f $$p; then :; \
  81. ##         elif test -f $(srcdir)/$$p; then \
  82. ##           p=$(srcdir)/$$p; \
  83. ##         else exit 1; fi; \
  84. ##         if $$p $$opt > .chkout$$pid 2> .chkerr$$pid \
  85. ##              && test -n "`cat .chkout$$pid`" \
  86. ##              && test -z "`cat .chkerr$$pid`"; then :; \
  87. ##         else echo "$$p failed $$opt test" 1>&2; exit 1; fi; \
  88. ##       done; \
  89. ##     done; rm -f .chk???$$pid
  90.